package main.java.com.silence.service;

import com.silence.pojo.Bill;
import com.silence.vo.Pager;

import java.util.Date;

/**
 * Author: silence
 * Date: 17-6-3
 */
public interface IBillService {

    Bill findById(Integer id);

    Pager<Bill> findAllByOwnerId(Integer ownerId, Integer pageIndex);

    Pager<Bill> findAllByOwnerEmail(String email, Integer pageIndex);

    Pager<Bill> findAllByOwnerEmailAndCreateDate(String email, Integer pageIndex, Date createDate);

    int update(Bill bill);

    int deleteById(Integer id);

    int add(Bill bill);
}
